package cn.stylefeng.guns.workflow.controller;

import cn.stylefeng.guns.workflow.service.ProcessService;
import cn.stylefeng.roses.core.base.controller.BaseController;
import cn.stylefeng.roses.kernel.model.response.ResponseData;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
* @author: lujie
* @create: 2020/11/4
* @description:  流程管理控制器
**/
@RequestMapping("/process")
@Controller
public class ProcessController extends BaseController {
    @Resource
    private ProcessService processService;

    @PostMapping( "/suspendOrActiveApply")
    @ResponseBody
    public ResponseData suspendOrActiveApply(String instanceId, String suspendState) {
//        processService.suspendOrActiveApply(instanceId, suspendState);
        return SUCCESS_TIP;
    }

}
